30
How do I know the thumbnail's size (sample 1)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFile", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectCallMethod( thumbnail , "EndUpdate");
Message( "Width: " );
Message( _ObjectGetProperty( thumbnail , "ThumbnailWidth") );
Message( "Height: " );
Message( _ObjectGetProperty( thumbnail , "ThumbnailHeight") );

29
Is it possible to get the dimensions of the picture file

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Dimensions: <b>` + fwidth + ` x ` + fheight");
_ObjectCallMethod( thumbnail , "EndUpdate");

28
Is there any function to determine whether the file is a picture

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg.2");
_ObjectSetProperty( thumbnail , "Caption", "`IsPicture: <b>` + (fpicture ? `Yes` : `No`)");
_ObjectCallMethod( thumbnail , "EndUpdate");

27
How can I get the type of the file, like JPG File, and so on...

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Type: <b>` + ftype");
_ObjectCallMethod( thumbnail , "EndUpdate");

26
How do I get the file/folder's attributes

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Attributes: <b>0x` + hex(fattr)");
_ObjectCallMethod( thumbnail , "EndUpdate");

25
How can I determine if the giving input object is a file, folder (sample 2)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
Message( _ObjectCallMethod( thumbnail , "FormatABC", "`The ` + fname + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`","","","","C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg") );
Message( _ObjectCallMethod( thumbnail , "FormatABC", "`The ` + fname + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`","","","","C:\Program Files\Exontrol\ExThumbnail\Sample") );
Message( _ObjectCallMethod( thumbnail , "FormatABC", "`The ` + ffile + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`","","","","C:\Program Files\Exontrol\ExThumbnail\Sample\elogo2.jpg") );

24
Is there any function to get automatically the size of the file in KB, MB or GB

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Size: <b>` + fsizeF");
_ObjectCallMethod( thumbnail , "EndUpdate");

23
How can I get the size of the file (GB)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Size: <b>` + ( (fsize/1024/1024/1024) format `` ) + ` GB(s)`");
_ObjectCallMethod( thumbnail , "EndUpdate");

22
How can I get the size of the file (MB)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Size: <b>` + ( (fsize/1024/1024) format `` ) + ` MB(s)`");
_ObjectCallMethod( thumbnail , "EndUpdate");

21
How can I get the size of the file (KB)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Size: <b>` + ( (fsize/1024) format `` ) + ` KB(s)`");
_ObjectCallMethod( thumbnail , "EndUpdate");

20
How can I get the size of the file (bytes)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Size: <b>` + fsize + ` byte(s)`");
_ObjectCallMethod( thumbnail , "EndUpdate");

19
How do I get the time the file was created, opened and modified

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "Padding", "");
_ObjectSetProperty( thumbnail , "Alignment", 33);
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Created: <b><r>` + date(fcreated - bias/24/60) + `</b>` + `<br>` + `Modified: <b><r>` + date(fmodified - bias/24/60) + `</b>`+" +
	" `<br>` + `Last Opened: <r><b>` + date(fopened - bias/24/60) + `</b>`");
_ObjectSetProperty( thumbnail , "SingleCaption", _ObjectGetProperty( thumbnail , "Caption"));
_ObjectCallMethod( thumbnail , "EndUpdate");

18
How can I display the date/time the file/folder was last opened

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Opened: <b>` + date(fopened - bias/24/60)");
_ObjectSetProperty( thumbnail , "SingleCaption", _ObjectGetProperty( thumbnail , "Caption"));
_ObjectCallMethod( thumbnail , "EndUpdate");

17
How can I display the date/time the file/folder was last modified

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Modified: <b>` + date(fmodified - bias/24/60)");
_ObjectCallMethod( thumbnail , "EndUpdate");

16
How can I display the date/time the file/folder was created

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Created: <b>` + longdate(date(fcreated - bias/24/60)) + ` ` + time(date(fcreated - bias/24/60))");
_ObjectSetProperty( thumbnail , "SingleCaption", _ObjectGetProperty( thumbnail , "Caption"));
_ObjectCallMethod( thumbnail , "EndUpdate");

15
How can I get the alternate name of the file

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Alternate Name: <b>` + faname + `</b>, Name: <b>` + fname");
_ObjectCallMethod( thumbnail , "EndUpdate");

14
How can I get the file's extension

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Extension: <b>` + fext");
_ObjectCallMethod( thumbnail , "EndUpdate");

13
I've noticed the Caption property can use expressions, based on the file, the question is how can I use that feature without the Caption property

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
Message( _ObjectCallMethod( thumbnail , "FormatABC", "ffile +` ` + ( len(fname) ? `this is a file/folder`: `not found`)","","","","C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg") );

12
Can I determine if a file/thumbnail exists (sample 1)

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectCallMethod( thumbnail , "AddInputFiles", "sss");
_ObjectSetProperty( thumbnail , "Caption", "len(fname) ? `this is a file/folder` : `<fgcolor=FF0000><u>not found`");
_ObjectCallMethod( thumbnail , "EndUpdate");

11
How can I display the name of the file

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "`Name: <b>` + fname");
_ObjectCallMethod( thumbnail , "EndUpdate");

10
How can I display the full name of the file

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectSetProperty( thumbnail , "Caption", "ffile");
_ObjectCallMethod( thumbnail , "EndUpdate");

9
How can I display the index/number of files/thumbnails

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "BeginUpdate");
_ObjectSetProperty( thumbnail , "AcceptFolders", -1);
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample");
_ObjectSetProperty( thumbnail , "Caption", "(findex + 1) + ` of ` + fcount");
_ObjectCallMethod( thumbnail , "EndUpdate");

8
How can I add more files ( sample 3 )

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\device.png");

7
How can I add more files ( sample 2 )

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg\r\nC:\Program Files\Exontrol\ExThumbnail\Sample\logo.png\r\nC:\Program F" +
	"iles\Exontrol\ExThumbnail\Sample\cordova.png");

6
How can I add more files ( sample 1 )

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectSetProperty( thumbnail , "InputFile", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg\r\nC:\Program Files\Exontrol\ExThumbnail\Sample\EndangeredAnimals.png");

4
How can I add a file ( sample 3 )

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectCallMethod( thumbnail , "AddInputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");

3
How can I add a file ( sample 2 )

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectSetProperty( thumbnail , "InputFiles", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");

2
How can I add a file ( sample 1 )

OBJECT thumbnail;

thumbnail =  ObjectByName("AN1") ;
_ObjectSetProperty( thumbnail , "InputFile", "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg");